package com.wwwarehouse.financialcenter.adapter;

import android.os.Parcelable;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.view.ViewGroup;

import java.util.List;

public class MyPagerAdapter extends FragmentStatePagerAdapter {

    private List<Fragment> mTabContents;
    public MyPagerAdapter(FragmentManager fm, List<Fragment> mTabContents) {
        super(fm);
        this.mTabContents = mTabContents;
    }

    @Override
    public int getCount() {
        return mTabContents.size();
    }

    @Override
    public Fragment getItem(int arg0) {
        return mTabContents.get(arg0);
    }

    @Override
    public int getItemPosition(Object object) {
        return POSITION_NONE;
    }

    @Override
    public void destroyItem(ViewGroup container, int position, Object object) {

    }

    @Override
    public void restoreState(Parcelable state, ClassLoader loader) {

    }
}
